function getRandom(start, end) {
  const result =  Math.round(Math.random())*(end - start) + start;
  console.log('random:::', result);
  return result;
}


while(getRandom(0,1)) {
  console.count('even loop')
}